package com.yanlin.apiboss.service;

import com.yanlin.apiboss.remote.ServiceDriverUserClient;
import com.yanlin.internalcommon.dto.DriverUser;
import com.yanlin.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Driver;

/**
 * <p>标题：UserService</p>
 * <p>功能：</p>
 * <p>
 * 其他说明：
 * </p>
 * <p>审核：</p>
 * <p>重构：</p>
 * <p>创建日期：2025-06-13 07:49</p>
 *
 * @author yanlin
 */
@Service
public class UserService {

    @Autowired
    private ServiceDriverUserClient serviceDriverUserClient;

    public ResponseResult getUser(Integer state) {
        return serviceDriverUserClient.getUser(state);
    }

    public ResponseResult addUser(DriverUser driverUser) {
        return serviceDriverUserClient.addUser(driverUser);
    }

    public ResponseResult updateUser(DriverUser driverUser) {
        return serviceDriverUserClient.updateUser(driverUser);
    }
}